<template>
    <div>
        <h2 @click="showName">学生姓名：{{ name }}</h2>
        <h2>学生性别：{{ sex }}</h2>
    </div>
</template>

<script>
    import { mixin1, mixin2 } from '@/mixins';
    export default {
        name: 'Student',
        mixins: [mixin1, mixin2],
        data(){
            return {
                name: '张三',
                sex: '男',
            }
        },
        methods:{
            showName(){
                alert(this.name)
            }
        },
        mounted(){
            console.log('student hi!!!!')
        }
    }
</script>